    //删除
    public function del($request){
        $id = $request->param('id');
        return $this->where('{$pk|default="id"}',  $id)->delete();
    }